package com.example.forum.vo;

import lombok.Getter;
import lombok.Setter;
import org.springframework.http.HttpStatus;


@Setter
@Getter
public class JsonResult {
    private Integer StatusCode;
    private Object Data;
    private String Msg;

    public JsonResult(){

    }

    public JsonResult(HttpStatus code, String message, Object data) {
        super();
        this.StatusCode = code.value() ;
        this.Msg = message;
        this.Data = data;
    }

}
